<?php

namespace app\model;

use think\Model;

class WithdrawMode extends Model
{

    protected $connection = 'mysql';

    protected $pk = 'id';

    protected $name = 'withdraw_mode';

    public static function getmode($payway){
        $mode = self::where(['code'=>$payway])->find();
        if(!empty($mode)){
            $mode->toArray();
        }
        return $mode['mode_name'];
    }
}

